package com.yonyou.crm.sys.region.appctrl;

import java.util.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.yonyou.crm.sys.region.rmitf.IRegionsRmService;

@RequestMapping("/{version}/msys/regions")
@RestController
public class AppRegionsCtrl{
	
	@Autowired
	private IRegionsRmService service;
	
	@RequestMapping(method = RequestMethod.GET)
	public List<Map<String, Object>> getRegionCityDistrictData(@PathVariable("version") String version, HttpServletRequest request, HttpServletResponse response){
		return service.getRegionCityDistrictData();
	}
}